package com.aos.eap.adapter;


import com.aos.eap.R;
import com.aos.eap.bean.SearchThingBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import androidx.annotation.Nullable;


public class SearchThingItemAdapter extends BaseQuickAdapter<SearchThingBean.MtmbodiesBean.MtmbodystructsBean, BaseViewHolder> {


    public SearchThingItemAdapter(@Nullable List<SearchThingBean.MtmbodiesBean.MtmbodystructsBean> data) {
        super(R.layout.adapter_search_thing_item, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, final SearchThingBean.MtmbodiesBean.MtmbodystructsBean item) {
        helper.setText(R.id.tvTitle, item.getTitle());
        helper.setText(R.id.tvValue, item.getValue());
    }
}
